package pl.edu.pw.MidEmu.Base.Controllers;

import pl.edu.pw.MidEmu.Base.Views.BaseView;

/**
 * Class representing base controller use by all GUI componets
 * Controller is responsible for processing user commands and performind interface actions
 * 
 * @author Mateusz Starodab
 *
 * @param <T> Generic view taht will be used along with this controller
 */
public abstract class BaseController<T extends BaseView>
{
	/**
	 * Field containing view
	 */
	private T view;

	/**
	 * Returns view used by this controller
	 * 
	 * @return a view
	 */
	public T getView()
	{
		return view;
	}

	/**
	 * Sets view used by this controller
	 * @param view
	 */
	public void setView(T view)
	{
		this.view = view;
	}
}
